# coding:utf-8
from odoo import models, fields, api
from odoo.osv import expression


class OLResUsers(models.Model):
    _inherit = 'mrp.production'

    attachment_ids = fields.Many2many('ir.attachment', string=u'附件')

    @api.multi
    def post_inventory(self):
        res = super(OLResUsers, self).post_inventory()
        self.button_unreserve()
        return res


